<form class="form-horizontal" id="CstOrderDetailForm" xmlns:th="http://www.w3.org/1999/xhtml">
    <input class="hidden" name="id" th:value="${cstLinkman.id}">

    <div class="box-body">
        <div class="form-group">
            <label  class="col-sm-3 control-label">联系人编号 :</label>
            <div class="col-sm-8">
                <input  name="lkmId" class="form-control"  min="1" require="必填项"  placeholder="" th:value="${cstLinkman.lkmId}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">客户编号 :</label>
            <div class="col-sm-8">
                <input  name="lkmCustId" class="form-control"  min="1" require="必填项"  placeholder="" th:value="${cstLinkman.lkmCustId}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">客户姓名 :</label>
            <div class="col-sm-8">
                <input  name="lkmCustName" class="form-control"  min="1" require="必填项"  placeholder="" th:value="${cstLinkman.lkmCustName}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">姓名 :</label>
            <div class="col-sm-8">
                <input name="lkmName" class="form-control" placeholder="" th:value="${cstLinkman.lkmName}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">性别 :</label>
            <div class="col-sm-8">
                <!--                                <input name="lkmGender" class="form-control" placeholder="">-->
                男:<input  name="lkmGender" type="checkbox" th:value="${cstLinkman.lkmGender}" value="男">
                女:<input  name="lkmGender" type="checkbox" th:value="${cstLinkman.lkmGender}" value="女">

            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">职位 :</label>
            <div class="col-sm-8">
                <input name="lkmPosition" class="form-control" placeholder="" th:value="${cstLinkman.lkmPosition}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">手机号 :</label>
            <div class="col-sm-8">
                <input name="lkmMobile" class="form-control" placeholder="" th:value="${cstLinkman.lkmMobile}">
            </div>
        </div>
        <div class="form-group">
            <label  class="col-sm-3 control-label">备注 :</label>
            <div class="col-sm-8">
                <input name="lkmMemo" class="form-control" placeholder="" th:value="${cstLinkman.lkmMemo}">
            </div>
        </div>
    </div>
    <!-- /.box-body -->
    <div class="box-footer">
        <div class="pull-right">
            <button type="button" id="saveDetailCustomer" class="btn btn-info">确定</button>
            <button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
        </div>
    </div>
    <!-- /.box-footer -->
</form>
<script>
    $(function () {
        $("#saveDetailCustomer").on('click', function () {
            if (doValidForm(CstOrderDetailForm)) {
                Core.mask("#saveDetailCustomer");
                Core.postAjax("/cstLinkman/edit",$("#CstOrderDetailForm").serialize(),function (data) {
                    if (data.status == 200) {
                        Core.unmask("#saveDetailCustomer");
                        $("#userDetailModal").modal("hide");
                        $("#myModal").modal("hide");
                        Core.refreshTable("#table",true);
                    }
                    layer.msg(data.msg);
                })
            }
        });
    });
</script>